<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/25 0025
 * Time: 上午 10:11
 */

namespace App\Api\Service\Routes;

use Dingo\Api\Routing\Router;

class PlateRoute
{
    public function map(Router $router)
    {
        $router->group(['namespace' => 'Plate\Controllers', 'prefix'=>'plate'], function ($router) {

            $router->any('list', 'IndexController@getList');

            $router->any('info', 'IndexController@getInfo');

            $router->any('add', 'IndexController@plateAdd');

            $router->any('edit', 'IndexController@plateEdit');

            $router->any('del', 'IndexController@plateDel');

            $router->any('category-list', 'IndexController@getCategoryList');

            $router->any('search-history', 'IndexController@PlateSearchHistory');
            $router->any('getImg', 'IndexController@getImg');
            $router->any('print', 'PrintController@index');

            //版的印刷方向
            $router->any('getPrintDirectionList', 'IndexController@getPrintDirectionList');

            //搜索类似版的版位
            $router->any('searchPrintPosition', 'IndexController@searchPrintPosition');

            //版支，套版处理
            $router->any('editPlateBranch', 'IndexController@editPlateBranch');

            //创建订单（工单）选择版的详情
            $router->any('getPlateBranchDetail', 'IndexController@getPlateBranchDetail');


        });
    }
}